import axios from "@/plugins/axios.js"
export const apiAdminLogin =(params)=>{
    return axios({
        url:'http://91lzbc835476.vicp.fun:10916/xw01/xw-admin/api/admin/login',
        method:'GET',
        params
    })
}

export const apiAdminReg =(data)=>{
    return axios({
        url:'http://91lzbc835476.vicp.fun:10916/xw01/xw-admin/api/admin/reg',
        method:'POST',
        data
    })
}

export const apiCommentShowListByWeibo =(pageNum,pageSize,findtxt,state)=>{
    return axios({
        url:'http://91lzbc835476.vicp.fun:47032/xw01/xw-weibo/api/weibo/list',
        method:'GET',
        params: {  
            pageNum: pageNum,  
            pageSize: pageSize,  
            findtxt:findtxt,
            state: state  
        } 
    })
}

export const apiWeiboUpdateState =(params)=>{
    return axios({
        url:'http://91lzbc835476.vicp.fun:47032/xw01/xw-weibo/api/weibo/updateState',
        method:'GET',
        params
    })
}

export const apiCommentShowListByUser =(userloginname,pageNum,pageSize,state)=>{
    return axios({
        url:'http://91lzbc835476.vicp.fun:47032/xw01/xw-comment/api/comment/showListByUser',
        method:'GET',
        params: {  
            userloginname: userloginname,  
            pageNum: pageNum,  
            pageSize:pageSize,
            state: state  
        } 
    })
}

export const apiCommentupdateCommentState =(params)=>{
    return axios({
        url:'http://91lzbc835476.vicp.fun:47032/xw01/xw-comment/api/comment/updateCommentState',
        method:'GET',
        params
    })
}


export const apiUserUpdateState=(params)=>{
    return axios({
        url:'http://91lzbc835476.vicp.fun:47032/xw01/xw-user/api/user/updateState',
        method:'POST',
        params
    })
}

export const apiUsergetAllUser=()=>{
    return axios({
        url:'http://91lzbc835476.vicp.fun:47032/xw01/xw-user/api/user/getAllUser',
        method:'GET',
    })
}


